<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="renderer" content="webkit">
		<title>网站配置</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
		<link rel="shortcut icon" href="favicon.ico">
		<link href="__STATIC__/css/bootstrap.min.css" rel="stylesheet">
		<link href="__STATIC__/css/font-awesome.min.css" rel="stylesheet">
		<link href="__STATIC__/css/animate.css" rel="stylesheet">
		<link href="__STATIC__/css/style.css" rel="stylesheet">
		<!--表单元素css-->
		<link href="__STATIC__/css/plugins/iCheck/custom.css" rel="stylesheet">

	</head>

	<body class="fixed-sidebar full-height-layout gray-bg">
		<div id="wrapper">
			<!--左侧导航开始-->
			<include file="Public/left" title="left" />
			<!--左侧导航结束-->
			<!--右侧部分开始-->
			<div id="page-wrapper" class="gray-bg dashbard-1" style="height: auto;">
				<include file="Public/top" title="top" />
				<div class="row J_mainContent" id="content-main">
					<div class="col-sm-12">
						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>系统设置 <small></small></h5>
							</div>
							<div class="ibox-content">
								<form action="{:U('config/index')}" method="post" class="form-horizontal">
									<div class="form-group">
										<label class="col-sm-2 control-label">新用户默认上传空间大小(MB)</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="allowsize" placeholder="allowsize" value="{$info.allowsize}"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">新用户默认限制上传大小(MB)</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="singlesize" placeholder="singlesize" value="{$info.singlesize}"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">到期时间</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="tianshu" placeholder="tianshu" value="{$info.tianshu|date='Y-m-d',###}"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">上传类型</label>
										<div class="col-sm-10 checkbox i-checks">
											<label class="radio-inline">
          <input type="radio" name="uptype" id="uptype" value="1" <if condition="$info.uptype eq 1">checked="checked"</if>>七牛</label>
										</div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">公共七牛－Access Key</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="ggaccesskey" placeholder="" value="{$info.ggaccesskey}"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">公共七牛－Secret Key</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="ggsecretkey" placeholder="" value="{$info.ggsecretkey}"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">公共七牛－空间名称</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="ggbucket" placeholder="" value="{$info.ggbucket}"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">公共七牛－七牛空间域名</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="ggdomain" placeholder="" value="{$info.ggdomain}"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">

									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">邮箱－SMTP</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="mail_smtp" placeholder="" value="{$info.mail_smtp}"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">邮箱－账号</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="mail_account" placeholder="" value="{$info.mail_account}"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">邮箱－密码</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="mail_pass" placeholder="" value="{$info.mail_pass}"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">邮箱－名称</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="mail_name" placeholder="" value="{$info.mail_name}"></div>
									</div>
									<div class="hr-line-dashed"></div>

									<div class="form-group">
										<label class="col-sm-2 control-label">文件大小Ｍ（用,号分隔）</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="filesizearr" placeholder="" value="{$info.filesizearr}"></div>
									</div>
									<div class="hr-line-dashed"></div>

									<div class="form-group">
										<label class="col-sm-2 control-label">文件大小对应下载次数（用,号分隔）</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="downnumarr" placeholder="" value="{$info.downnumarr}"></div>
									</div>
									<div class="hr-line-dashed"></div>


									<div class="form-group">
										<label class="col-sm-2 control-label">短信账号</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="smsaccount" placeholder="" value="{$info.smsaccount}"></div>
									</div>
									<div class="hr-line-dashed"></div>

									<div class="form-group">
										<label class="col-sm-2 control-label">短信密码</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="smspass" placeholder="" value="{$info.smspass}"></div>
									</div>
									<div class="hr-line-dashed"></div>

									<div class="form-group">
										<label class="col-sm-2 control-label">每日下载次数－账号绑定邮箱</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="freedownnum1" placeholder="" value="{$info.freedownnum1}"></div>
									</div>
									<div class="hr-line-dashed"></div>

									<div class="form-group">
										<label class="col-sm-2 control-label">每日下载次数－账号绑定手机</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="freedownnum2" placeholder="" value="{$info.freedownnum2}"></div>
									</div>
									<div class="hr-line-dashed"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">每日下载次数－账号绑定邮箱+手机</label>
										<div class="col-sm-10">
											<input class="form-control" type="text" name="freedownnum3" placeholder="" value="{$info.freedownnum3}"></div>
									</div>
									<div class="hr-line-dashed"></div>


									<div class="form-group">
										<div class="col-sm-4 col-sm-offset-2">
											<input type="hidden" name="id" value="{$info.id}">
											<button class="btn btn-info" type="submit">保存内容</button>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--右侧部分结束-->

			<!-- 全局js -->
			<script src="__STATIC__/js/jquery.min.js"></script>
			<script src="__STATIC__/js/bootstrap.min.js"></script>
			<script src="__STATIC__/js/content.js"></script>
			<!-- iCheck -->
			<script src="__STATIC__/js/plugins/iCheck/icheck.min.js"></script>
			<script>
				$(document).ready(function() {
					$('.i-checks').iCheck({
						checkboxClass: 'icheckbox_square-green',
						radioClass: 'iradio_square-green',
					});
				});
			</script>
	</body>

</html>